#ifndef LOGDIALOG_H
#define LOGDIALOG_H

#include <QDialog>

namespace Ui {
  class LogDialog;
}

class LogDialog:public QDialog{
    Q_OBJECT

  public:
    explicit LogDialog(void* mainWindow,QWidget* parent=nullptr);
    ~LogDialog();

    void AddLog(QString& Text);
    void AddLog(QString&& Text);

  protected:
    void closeEvent(QCloseEvent* event);

  private slots:
    void on_pushButton_Clear_clicked();

    void on_textBrowser_Log_textChanged();

  private:
    Ui::LogDialog *ui;
    
    void* mainWindow;
    bool IsInit;
};

#endif // LOGDIALOG_H
